SERVER_URL = 'http://192.168.0.20:8888/'
XMLRPC_ADDR = '127.0.0.1', 6666
SOCKET_ADDR = '127.0.0.1', 8888
GPS_INTERVAL = 5
PROXY = None #{'http': 'http://192.168.0.20:8080'}
SMS_PREFIX = 'Wiadomosc z internetowej bramki SMS od mwicat: '

# logging
LOG_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
LOG_FILE = 'logger.out'
LOG_SERVER = '192.168.0.20'
LOG_PORT = 9999


import sysinfo
rpc_password = sysinfo.imei()

from sniffylib.client import http
client = http.HttpClient(SERVER_URL, PROXY)

#from sniffylib.localise import misc
#location = misc.RandomPositionService(GPS_INTERVAL)

from sniffylib.localise import gps
location = gps.Gps(GPS_INTERVAL)


from sniffylib.core import application
lello = application.LelloService(client, location)

from sniffylib.rpc import core, shell

env = {}
shell = shell.SniffyShell(rpc_password, env)
from sniffylib.rpc import socketsms
rpc = socketsms.SmsSocketService(shell, prefix=SMS_PREFIX)

env['lello'] = lello
env['remote'] = rpc
#rpc.error_handler = rpc.result_handler = sms.SmsShellHandler()

from sniffylib.ui import s60ui as frontend
    
